package com.zlm.tools.pojo;

import com.zlm.tools.annotation.Length;
import com.zlm.tools.annotation.Max;
import com.zlm.tools.annotation.Min;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author zlm
 * @date 2023/8/23
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {

    @Length(min = 3, max = 10)
    private String name;

    @Max(value = 10)
    @Min(value = 100)
    private Integer age;
}
